package Test;

public class Student {
    //构造器
    public Student(){
        System.out.println("public Student()");
    }
    public Student(double sorce){
        this.sorce = sorce;
        System.out.println("public Student(double sorce)");
    }

    private double sorce;

    public void setSorce(double sorce){
        this.sorce = sorce;
    }

    public double getSorce(){
        return sorce;
    }

    public void PrintThis(){
        System.out.println(this);
    }

    public void enter(double sorce){
        if(this.sorce > sorce){
            System.out.println("考上了");
        }
        else{
            System.out.println("没考上");
        }
    }
}
